import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

public class SPartitionTest {

    protected SPartition solution;

    @Before
    public void setUp() {
        solution = new SPartition();
    }

    @Test
    public void testCase0() {
        String s = "oxox";

        long expected = 2L;
        long actual = solution.getCount(s);

        Assert.assertEquals(expected, actual);
    }

    @Test
    public void testCase1() {
        String s = "oooxxx";

        long expected = 0L;
        long actual = solution.getCount(s);

        Assert.assertEquals(expected, actual);
    }

    @Test
    public void testCase2() {
        String s = "xoxxox";

        long expected = 4L;
        long actual = solution.getCount(s);

        Assert.assertEquals(expected, actual);
    }

    @Test
    public void testCase3() {
        String s = "xo";

        long expected = 0L;
        long actual = solution.getCount(s);

        Assert.assertEquals(expected, actual);
    }


}
